﻿SET NOCOUNT ON

--- Make the centraldba Database TrustWorthy
USE [master]
GO
ALTER DATABASE [$(DatabaseName)] SET TRUSTWORTHY ON
GO

USE [$(DatabaseName)]
GO

SET NOCOUNT OFF

--- Remove old .Net CLR assembly (v1.x)
IF  EXISTS (SELECT * FROM sys.assemblies asms WHERE asms.name = N'centraldba_clr')
	ALTER ASSEMBLY [centraldba_clr] DROP FILE ALL;
